<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>预约实验室</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css">
</head>
<body>
<%@ include file="../header.jsp" %>
<div class="container">
    <h2>预约实验室</h2>
    <form action="${pageContext.request.contextPath}/labReservations?action=add" method="post">
        <input type="hidden" name="labId" value="${param.labId}">
        <div class="form-group">
            <label for="reservationDate">预约日期:</label>
            <input type="date" id="reservationDate" name="reservationDate" required>
        </div>
        <div class="form-group">
            <label for="startTime">开始时间:</label>
            <input type="time" id="startTime" name="startTime" required>
        </div>
        <div class="form-group">
            <label for="endTime">结束时间:</label>
            <input type="time" id="endTime" name="endTime" required>
        </div>
        <div class="form-group">
            <label for="purpose">用途:</label>
            <textarea id="purpose" name="purpose" rows="4" required></textarea>
        </div>
        <div class="form-group">
            <button type="submit">提交预约</button>
        </div>
    </form>
</div>
</body>
</html>